package com.zheng.shop.rpc.api;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.zheng.common.base.BaseService;
import com.zheng.shop.common.exception.ShopException;
import com.zheng.shop.dao.model.*;
import io.swagger.models.auth.In;

import java.util.List;
import java.util.Map;

/**
 * ShopSkuService接口
 * Created by shuzheng on 2017/11/7.
 */
public interface ShopSkuService extends BaseService<ShopSku> {
    boolean createSku(ShopSku sku);

    int createSkuList(List<ShopSku> skuList) throws ShopException;

    boolean createSku(JSONObject skuJson, ShopProduct product) throws ShopException;

    int createSkuList(JSONObject param, ShopProduct product) throws ShopException;

    boolean updateSku(ShopSku sku) throws Exception;

    int updateSkuList(JSONObject param, ShopProduct product) throws ShopException;

    boolean deleteSkuList(List<Integer> idList) throws ShopException;

    List<Map<String, Object>> selectSkuAttributeList(Integer skuId);

    List<Map<String, Object>> selectSkuMapList(Integer productId, Integer status);
}